package com.company.model.request;


import com.company.model.SortType;

/**
 * 公司查询对象
 * Created by tu on 2017/7/6.
 */
public class CompanyQuery extends PageQuery {

  private static final long serialVersionUID = 7224058840622162097L;
  /**
   * 名称
   */
  private String name;
  /**
   * id
   */
  private Long id;
  /**
   * 排序方式
   * {@link SortType}
   */
  private Integer sort;

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public Long getId() {
    return id;
  }

  public void setId(Long id) {
    this.id = id;
  }

  public Integer getSort() {
    return sort;
  }

  public void setSort(Integer sort) {
    this.sort = sort;
  }

  @Override
  public String toString() {
    return "CompanyQuery{" +
        "page=" + page +
        ", pageSize=" + pageSize +
        ", name='" + name + '\'' +
        ", id=" + id +
        ", sort=" + sort +
        '}';
  }
}
